package com.wyt.dao;



import com.wyt.entity.Torder;

import java.util.List;
import java.util.Map;

public interface TorderMapper {
    int deleteByPrimaryKey(Integer pid);

    int insert(Torder record);

    int insertSelective(Torder record);

    Torder selectByPrimaryKey(Integer pid);

    int updateByPrimaryKeySelective(Torder record);

    int updateByPrimaryKey(Torder record);

    List<Torder> FindAllOrder();

    //依据pid查询所有的订单
    List<Torder> FindAllOrderDetailByPid(Integer pid);

    //查询下单用户的订单数量
    List<Map<String,Object>>FindUserNameAndCode();

    

}